<foreach name="arts" item="item">
    <if condition="!$item['article_image']">
        <div class="article-sub">
            <div class="article-title">
                <div class="sub-top">
                    <p class="source-time">{$item['create_time']}</p>
                    <p class="reading-number">阅读：<span>{$item['read_num']}</span></p>
                </div>
                <div class="sub-bottom">
                    <h2><a href="/article?p={$item['article_id']}" target="_blank">{$item['article_title']}</a></h2>
                </div>
                <hr class="level">
            </div>
            <div class="article-details">
                <ul class="message">
                    <li>来源：<span class="source">{$item['source']}</span></li>
                    <li>
                        <span class="iconfont user-icon green">&#xe62c;</span>
                        <span class="user-name">{$item['article_author']}</span>
                        <!-- <span class="iconfont take">&#xe659;</span> -->
                    <li><p class="classify">分组：<span>{$item['article_category']}</span></p><span class="iconfont mobile-packet">&#xe637;</span></li>
                </ul>
                <if condition="$item['article_abstract']">
                    <p class="text-content">{$item['article_abstracts']}</p>
                    <else />
                    <p class="text-content">此文章没有摘要</p>
                </if>
                <ul class="message airticle_id" airticle_id="{$item['article_id']}" airticle_title="{$item['article_title']}">
                    <li>
                        <if condition="in_array($user_login,$item['is_liked'])">
                            <div class="praise golden"><span class="iconfont">&#xf010d;</span><p>{$item['like_num']}</p></div>
                            <else />
                            <div class="praise"><span class="iconfont">&#xf010d;</span><p>{$item['like_num']}</p></div>
                        </if>
                    </li>
                    <li data-title="{$item['article_title']}" data-img="/refer?url={$item['article_image']}" data-articleID="{$item['article_id']}" data-url="/article?p={$item['article_id']}">
                        <if condition="in_array($item['article_id'], array_column($combinations, 'id'))">
                            <p class="add-merge icon_selected" addCar-event><span class="iconfont icon-box"></span>加入合并器</p>
                            <else/>
                            <p class="add-merge" addCar-event><span class="iconfont icon-box"></span>加入合并器</p>
                        </if>
					</li>
                    <li>
                        <span class="icon-delete delete-btn" onclick="article_delete($(this))"></span>
                    </li>
                </ul>
            </div>
        </div>
    </if>
    <if condition="$item['article_image']">
        <if condition="!$item['article_abstract']">
            <div class="article-sub">
                <div class="sub-view">
                    <if condition="$item['source']=='微知'">
                        <img src="/refer?url={$item['article_image']}" alt="" onerror="this.src='/Public/static/images/wuyulantu.png';">
                        <else/>
                        <img src="{$item['article_image']}" alt="" onerror="this.src='/Public/static/images/wuyulantu.png';">
                    </if>
                    <div class="sub-top sub-top-back">
                        <p class="source-time">{$item['create_time']}</p>
                        <p class="reading-number">阅读：<span>{$item['read_num']}</span></p>
                    </div>
                    <div class="sub-bottom absolute">
                        <h3><a href="/article?p={$item['article_id']}" target="_blank">{$item['article_title']}</a></h3>
                        <ul class="message-sub">
                            <li>来源：<span class="source">{$item['source']}</span></li>
                            <li>
                                <span class="iconfont user-icon green">&#xe62c;</span>
                                <span class="user-name">{$item['article_author']}</span>
                            </li><li><p class="classify">分组：<span>{$item['article_category']}</span></p><span class="iconfont mobile-packet" data-toggle="tooltip" move-event="picture">&#xe637;</span></li>
                        </ul>
                    </div>
                </div>
                <div class="article-details">
                    <ul class="message airticle_id" airticle_id="{$item['article_id']}" airticle_title="{$item['article_title']}">
                        <li>
                            <if condition="$item['is_liked']==1">
                                <div class="praise golden"><span class="iconfont">&#xf010d;</span><p>{$item['like_num']}</p></div>
                                <else />
                                <div class="praise"><span class="iconfont">&#xf010d;</span><p>{$item['like_num']}</p></div>
                            </if>
                        </li>
                       <li data-title="{$item['article_title']}" data-img="/refer?url={$item['article_image']}" data-articleID="{$item['article_id']}" data-url="/article?p={$item['article_id']}">
                        <if condition="in_array($item['article_id'], array_column($combinations, 'id'))">
                            <p class="add-merge icon_selected" addCar-event><span class="iconfont icon-box"></span>加入合并器</p>
                            <else/>
                            <p class="add-merge" addCar-event><span class="iconfont icon-box"></span>加入合并器</p>
                        </if>
						</li>
                        <li>
                            <span class="icon-delete delete-btn" onclick="article_delete($(this))"></span>
                        </li>
                    </ul>
                </div>
            </div>
        </if>
    </if>
    <if condition="$item['article_image']">
        <if condition="$item['article_abstract']">
            <div class="article-sub">
                <div class="sub-view">
                    <if condition="$item['source']=='微知'">
                        <img src="/refer?url={$item['article_image']}" alt="" onerror="this.src='/Public/static/images/wuyulantu.png';">
                        <else/>
                        <img src="/refer?url={$item['article_image']}" alt="" onerror="this.src='/Public/static/images/wuyulantu.png';">
                    </if>
                    <div class="sub-top sub-top-back">

                        <p class="source-time">{$item['create_time']}</p>
                        <p class="reading-number">阅读：<span>{$item['read_num']}</span></p>
                    </div>
                    <div class="sub-bottom absolute">
                    <h2><a href="/article?p={$item['article_id']}" target="_blank">{$item['article_title']}</a></h2>
                    </div>
                </div>
                <div class="article-details">
                <ul class="message">
                    <li>来源：<span class="source">{$item['source']}</span></li>
                    <li>
                        <span class="iconfont user-icon green">&#xe62c;</span>
                        <span class="user-name">{$item['article_author']}</span>
                        <!-- <span class="iconfont take">&#xe659;</span> -->
                        <li>分组：<span>{$item['article_category']}</span><span class="iconfont mobile-packet" data-toggle="tooltip" move-event="picture">&#xe637;</span></li>
                    </ul>
                <p class="text-content">{$item['article_abstract']}</p>
                <ul class="message airticle_id" airticle_id="{$item['article_id']}" airticle_title="{$item['article_title']}">
                    <li>
                    <if condition="$item['is_liked']==1">
                        <div class="praise golden"><span class="iconfont">&#xf010d;</span><p>{$item['like_num']}</p></div>
                        <else />
                        <div class="praise"><span class="iconfont">&#xf010d;</span><p>{$item['like_num']}</p></div>
                    </if>
                     <li>
                        </li>
                    <li data-title="{$item['article_title']}" data-img="{$item['article_image']}" data-articleID="{$item['article_id']}" data-url="">
                    <if condition="in_array($item['article_id'], array_column($combinations, 'id'))">
                        <p class="add-merge icon_selected" addCar-event><span class="iconfont icon-box"></span>加入合并器</p>
                        <else/>
                        <p class="add-merge" addCar-event><span class="iconfont icon-box"></span>加入合并器</p>
                    </if>
                    </li>
                    <li>
                        <span class="icon-delete delete-btn" onclick="article_delete($(this))"></span>
                    </li>    
                    </ul>
                </div>
            </div>
        </if>
    </if>
</foreach>
